package com.example.demo.service;

import com.example.demo.entity.User;
import com.example.demo.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author ：lihetian
 * @date ：Created in 2022/1/23 15:12
 * @description：
 * @modified By：`
 * @version: 2.0
 */
@Service
public class UserService {
    @Autowired
    UserMapper userMapper;
    public User Sel(int id){
        return  userMapper.Sel(id);
    }

    public User InsertUser(User user){
        return  userMapper.InsertUser(user);
    }
}
